//
//  UIColor+YHStyle.m
//  ScriptKill
//
//  Created by mac on 2020/6/19.
//  Copyright © 2020 ScriptKill. All rights reserved.
//

#import "UIColor+YHStyle.h"

//UIColor * YHColorTraitNameHex(NSString * name, NSString * hex){
//    if (@available(iOS 11.0, *)) {
//        return [UIColor colorNamed:name inBundle:[NSBundle YHKitBundle] compatibleWithTraitCollection:nil];
//    } else {
//        return [UIColor yh_colorWithHexString:hex];
//    }
//}
//
//UIColor * YHColorTraitNameRGBA(NSString * name, YHRGBA rgba){
//    if (@available(iOS 11.0, *)) {
//        return [UIColor colorNamed:name inBundle:[NSBundle YHKitBundle] compatibleWithTraitCollection:nil];
//    } else {
//        return [UIColor yh_colorWithRGBA:rgba];
//    }
//}

@implementation UIColor (YHStyle)

+ (UIColor *)yh_theme{
    return [UIColor yh_colorWithHexString:@"141A32"];
}

+ (UIColor *)yh_h1{
    return [UIColor yh_colorWithHexString:@"#343a40"];
}

+ (UIColor *)yh_h2{
    return [UIColor yh_colorWithHexString:@"#495057"];
}
+ (UIColor *)yh_h3{
    return [UIColor yh_colorWithHexString:@"#868e96"];
}
+ (UIColor *)yh_hint{
    return [UIColor yh_colorWithHexString:@"#adb5bd"];
}
+ (UIColor *)yh_placeholder{
    return [UIColor yh_colorWithHexString:@"#dee2e6"];
}

+ (UIColor *)yh_separator{
    return [UIColor yh_colorWithHexString:@"#dee2e6"];
}
+ (UIColor *)yh_background{
    return [UIColor yh_colorWithHexString:@"#f8f9fa"];
}
+ (UIColor *)yh_backgroundButton{
    return [UIColor yh_colorWithHexString:@"#bac8ff"];
}

/// 阴影色 黑色 0.12 透明
+ (UIColor *)yh_shadow{
    return [[UIColor yh_black] colorWithAlphaComponent:0.12];
}



+ (UIColor *)yh_blue{
    return [UIColor yh_colorWithHexString:@"2666FE"];
}
+ (UIColor *)yh_white{
    return [UIColor yh_colorWithHexString:@"FFFFFF"];
}
+ (UIColor *)yh_black{
    return [UIColor yh_colorWithHexString:@"000000"];
}
+ (UIColor *)yh_orange{
    return [UIColor yh_colorWithHexString:@"FDCC39"];
}
+ (UIColor *)yh_green{
    return [UIColor yh_colorWithHexString:@"5CC98D"];
}
+ (UIColor *)yh_red{
    return [UIColor yh_colorWithHexString:@"FB5D21"];
}
+ (UIColor *)yh_yellow{
    return [UIColor yh_colorWithHexString:@"FFB300"];
}


@end
